home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / dvlprstc.hqx / Developer Stack 1.3r / card_43831.txt < prev    next >
Encoding:
Text File  |  1991-04-30  |  1.4 KB  |  77 lines

  1. -- card: 43831 from stack: in.3r
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3837
  5. -- name: ChangeCase
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A004
  11. -- rect: left=198 top=233 right=284 bottom=258
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 27056 / 27056
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Try it...
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   put changeCase(field "syntax",1) into field "syntax"
  23.   wait 60 ticks
  24.   put changeCase(field "syntax",2) into field "syntax"
  25.   wait 60 ticks
  26.   put changeCase(field "syntax",4) into field "syntax"
  27.   wait 60 ticks
  28.   put changeCase(field "syntax",3) into field "syntax"
  29. end mouseUp
  30.  
  31.  
  32.  
  33. -- part contents for background part 10
  34. ----- text -----
  35. 53
  36.  
  37. -- part contents for background part 27
  38. ----- text -----
  39. XFCN
  40.  
  41. -- part contents for background part 5
  42. ----- text -----
  43. ChangeCase
  44.  
  45. -- part contents for background part 6
  46. ----- text -----
  47. This XFCN will convert the text in any container to all upper, all lower, capitalized sentences, or capitalized words.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. Thanks to:
  56. Steve Maller, Apple Computer.
  57. AppleLink: maller1 ΓÇó Delphi: stevemaller ΓÇó MCI Mail: smaller
  58.  
  59.  
  60. -- part contents for background part 7
  61. ----- text -----
  62. Syntax:
  63.  
  64.   Changecase(<text>,<mode>)
  65.  
  66. <Text> Is Any Text Container
  67. <Mode> Can Be 1,2,3, Or 4
  68. 1= Convert To Upper Case
  69. 2= Convert To Lower Case
  70. 3= Capitalize Sentences
  71. 4= Capitalize Words
  72.  
  73.  
  74.  
  75.  
  76.  
  77.